package Class;

public class Rectangule {
	private int length;
	private int width;
	
	public Rectangule() {
		this.length = 1;
		this.width = 1;
	}
	
	public Rectangule(int length) {
		this.length = length;
		this.width = length;
	}
	
	public Rectangule(int length, int width) {
		this.length = length;
		this.width = width;
	}
	
	public void Circle() {
		int circle = (length + width) * 2;
	    System.out.println(circle); 
	}
	
	public void Area() {
		int area = length * width;
		System.out.println(area);
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	@Override
	public String toString() {
		return "Rectangule [length=" + length + ", width=" + width + "]";
	}

}
